from tkinter import*
X=int(input('x='))
N=int(input('n='))
Y=int(input('y='))
coords3=[0*N+X,0*N+Y,10*N+X,0*N+Y,10*N+X,10*N+Y,20*N+X, 10*N+Y, 20*N+X,30*N+Y,10*N+X,30*N+Y,10*N+X,20*N+Y,0*N+X,20*N+Y]
if N!=0 and max(coords3)<=500 and min (coords3)>=0:
    root=Tk()
    root.title('ИТ марафон')
    root.geometry('500x500')
    canvas=Canvas(bg='white', width=500, height=500)
    canvas.pack(anchor=CENTER, expand=1)
    canvas.create_polygon(coords3)
    root.mainloop()
else:
    print('Фигура выходит за пределы поля')
    exit()